
<!DOCTYPE html>
<html lang="en-US">
<head>
    <meta charset="UTF-8"/>
    <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=1" name="viewport" />
    <meta http-equiv="content-script-type" content="text/javascript">
    <meta name="format-detection" content="telephone=no" />
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
            <link rel="shortcut icon" href="/favicon.ico">
            <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
        <meta http-equiv="Pragma" content="no-cache" />
        <meta http-equiv="Expires" content="0" />
    <title>登录</title>
    <link rel="stylesheet"href="statics/mobile/css/style.css?v=2016103101">
        
    
	<style type="text/css">
		.oth_type_tit {
			border-top: 1px dashed #bdbdbd;
			padding-top: 10px;
			margin-left:10px;
			margin-right:10px;
		}
		.oth_type_txt {
			font-size: .14rem;
			color: #b0b0b0;
		}
		.login-ext{text-align:center;height:100px;}
		.icon{width:40px;height:40px;border-radius:50%;}
	</style>
</head>

<body style="">


<div class="membersbox pad50">

    <header class="mheader clearfix">
        <section class="mheader-left fl">
            <a href="javascript:history.go(-1);" class="mheader-link"><i class="icon-headerback"></i></a>
        </section>
        <section class="mheader-center fl">会员登录</section>
        <section class="mheader-right fl"></section>
    </header>
    <div class="loginCon">
        <input type="hidden" id="back_url" value="<?php echo $back_url;?>"/>
            <section class="mlogin_user">
                <section class="mlogin_name g-box">
                    <section class="mlogin_namele account">手机号码</section>
                    <section class="mlogin_nameri g-flex">
                        <input type="text" name="mobile" id="number" placeholder="请输入您的手机号码" value="">
                    </section>
                </section>
                <section class="mlogin_name g-box">
                    <section class="mlogin_namele password">密码</section>
                    <section class="mlogin_nameri g-flex">
                        <input type="password" name="password" id="password" placeholder="请输入您的密码" value="">
                    </section>
                </section>
                <section class="mlogin_name g-box">
                    <input type="hidden" name="verify_hide" id="code_hide">
                    <section class="mlogin_nameri g-flex">
                        <input type="text" placeholder="请输入右图验证码" name="verify" class="setpwd_text" id="code">
						<img src="" class="j-codeReresh" id="code_img_enti" style="height: 40px;"> 点图换一张
                    </section>
                </section>
            </section>
            <section class="mlogin_but"><button type="button" id="submit">登录</button></section>
		<div class="loginHelp">
            <a href="javascript:;">用户不存在时将自动注册为新会员</a>
        </div>
    </div>
	
<fieldset class="oth_type_tit">
	<legend align="center" class="oth_type_txt">其他方式登录</legend>
</fieldset>
<div class="login-ext"><a href="<?php echo API_ROOT;?>/index.php?con=customer&act=mplogin&shopid=<?php echo $store_id;?>&backurl=<?php echo $back_url;?>"><img src="statics/mobile/images/wxpay.png" border="0" alt="" class="icon icon-weixin"></a></div>
<?php include VIEWS_PATH."bottom.php";?>
<script src="statics/mobile/js/dist/lib-min.js?v=2016102404"></script>
</div>
<script type="text/javascript">
    $.Error = function(e, n) {
        var n = n ? n : 1500,
            t = $(".Errormes"),
            t = $('<section class="Errormes">' + e + "</section>");
        $("body").append(t), t.fadeIn("fast", function() {
            setTimeout(function() {
                t.fadeOut("fast", function() {
                    $(this).remove()
                })
            }, n)
        })
    }
    $("#submit").click(function(){
        var passed=true;
       // var alias = $("#alias").val();
        var number = $('#number').val();
        var password = $('#password').val();
        var code = $('#code').val();
       /* if (alias == "") {
            $.Error('店铺别名不能为空！', 1000);
            passed=false;
        }*/
        if (number == "") {
            $.Error('手机号码不能为空！', 1000);
            return false;
        }

        if (password == "") {
            $.Error('密码不能为空！', 1000);
            return false;
        }

        if (code == "") {
            $.Error('验证码不能为空！', 1000);
            return false;
        }
        $.post('?con=user&act=login',{"commit":"1","mobile":number,"verify":(code+''+$("#code_hide").val()),"password":password},function(data){
            if(data.code=='1'){
               $.Error(data.msg, 1000);
			   var backurl=$("#back_url").val();
			   backurl=backurl!=''?decodeURIComponent(backurl):'/';
               window.location.replace(backurl);
            } else {
                 $.Error(data.msg, 1000);
            }
        },'json');
    });

    //刷新验证码
    var refreshCode=function(){
		$.ajax({
			url: "//shop.bidcms.com/tool/code.php?v=" + Math.round(100 * Math.random()),
			type: "GET",
			dataType: "json",
			data: {},
			success: function(s) {
				if(0==s.errcode){
					d=s.data;
					$("#code_img_enti").attr('src',d.base64);
					$("#code_hide").val(d.captcha);
				}
			}
		})
    };
	refreshCode();
    $(".j-codeReresh").click(refreshCode);//刷新验证码
</script>


<!--在线客服 -->

<!-- end -->
</body>
</html>
<!-- 20170105 -->